﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardLogistics.Model.Purchase
{
    /// <summary>
    /// 采购合同_实体类
    /// </summary>
    [Serializable] 
    public partial class Purchase_Contract
    {
        public Purchase_Contract()
        { }
        #region Model
        private string _id = "sys_guid";
        private string _conno;
        private string _demandid;
        private string _suppid;
        private DateTime? _signdate;
        private DateTime? _bedate;
        private decimal? _deliverydays;
        private string _buytypeid;
        private string _signaddress;
        private string _conname;
        private decimal? _constatus;
        private string _conpic;
        private string _remark;
        private string _lastupdateuser;
        private DateTime? _lastupdatedate;
        private string _cardtype;

        private string _billno;
        private string _typename;
        private string _suppliersno;
        private string _suppliersname;

        #region 添加便于查询的字段
        /// <summary>
        /// 采购单据编号
        /// </summary>
        public string BILLNO
        {
            set { _billno = value; }
            get { return _billno; }
        }
        /// <summary>
        /// 采购类型名称
        /// </summary>
        public string TYPENAME
        {
            set { _typename = value; }
            get { return _typename; }
        }
        /// <summary>
        /// 供应商编号
        /// </summary>
        public string SUPPLIERSNO
        {
            set { _suppliersno = value; }
            get { return _suppliersno; }
        }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SUPPLIERSNAME
        {
            set { _suppliersname = value; }
            get { return _suppliersname; }
        }
        #endregion

        /// <summary>
        /// 主键
        /// </summary>
        public string ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string CONNO
        {
            set { _conno = value; }
            get { return _conno; }
        }
        /// <summary>
        /// 需求单ID
        /// </summary>
        public string DEMANDID
        {
            set { _demandid = value; }
            get { return _demandid; }
        }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public string SUPPID
        {
            set { _suppid = value; }
            get { return _suppid; }
        }
        /// <summary>
        /// 签定日期
        /// </summary>
        public DateTime? SIGNDATE
        {
            set { _signdate = value; }
            get { return _signdate; }
        }
        /// <summary>
        /// 生效日期
        /// </summary>
        public DateTime? BEDATE
        {
            set { _bedate = value; }
            get { return _bedate; }
        }
        /// <summary>
        /// 供货期（天）
        /// </summary>
        public decimal? DELIVERYDAYS
        {
            set { _deliverydays = value; }
            get { return _deliverydays; }
        }
        /// <summary>
        /// 采购类型ID
        /// </summary>
        public string BUYTYPEID
        {
            set { _buytypeid = value; }
            get { return _buytypeid; }
        }
        /// <summary>
        /// 签定地点
        /// </summary>
        public string SIGNADDRESS
        {
            set { _signaddress = value; }
            get { return _signaddress; }
        }
        /// <summary>
        /// 合同名称
        /// </summary>
        public string CONNAME
        {
            set { _conname = value; }
            get { return _conname; }
        }
        /// <summary>
        /// 合同状态
        /// </summary>
        public decimal? CONSTATUS
        {
            set { _constatus = value; }
            get { return _constatus; }
        }
        /// <summary>
        /// 合同执行负责人
        /// </summary>
        public string CONPIC
        {
            set { _conpic = value; }
            get { return _conpic; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string REMARK
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LASTUPDATEUSER
        {
            set { _lastupdateuser = value; }
            get { return _lastupdateuser; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LASTUPDATEDATE
        {
            set { _lastupdatedate = value; }
            get { return _lastupdatedate; }
        }
        /// <summary>
        /// 卡片种类
        /// </summary>
        public string CARDTYPE
        {
            set { _cardtype = value; }
            get { return _cardtype; }
        }

        /// <summary>
        /// 0 未提交 1 待审核 2 审核中 3 驳回 4 审核不通过 5审核通过
        /// </summary>
        public int IsSubmit
        {
            get;
            set;
        }
        #endregion Model

    }
}
